﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
//物品基类
public class Item : MonoBehaviour
{
    //public int Id { get; set; }
    //public string Name { get; set; }
    //public ItemType Type { get; set; }
    //public QualityType Quality { get; set; }
    //public string Description { get; set; }
    //public int Capacity { get; set; }
    //public string Sprite { get; set; }

    public int Id;
    public string Name;
    public ItemData.ItemType Type;
    public ItemData.QualityType Quality;
    public string Description;
    public int Capacity;
    public string Sprite;

    public Item(int id, string name, ItemData.ItemType item, ItemData.QualityType quality, string description, string Sprite)
    {
        this.Id = id;
        this.Name = name;
        this.Quality = quality;
        this.Description = description;
        this.Sprite = Sprite;
    }
    public Item(Item item)
    {
        this.Id = item.Id;
        this.Name = item.Name;
        this.Quality = item.Quality;
        this.Description = item.Description;
        this.Sprite = item.Sprite;
    }
    public Item()
    {
        this.Id = -1;
    }
}
